package com.tbs.parkingsaleapp.Http.Listenner;

import com.alibaba.fastjson.JSON;
import com.tbs.parkingsaleapp.Http.IAsycHttpBackgroundAction;
import com.tbs.parkingsaleapp.Http.HttpHelper;
import com.tbs.parkingsaleapp.Http.JsonData.FaceCheckResult;
import com.tbs.parkingsaleapp.SystemManager.NetWorkSetting;

public class FaceCheckHttper implements IAsycHttpBackgroundAction<String, FaceCheckResult> {
    @Override
    public FaceCheckResult BackGroundAction(String... params)throws Exception {

        String result=HttpHelper.Post(params[0], NetWorkSetting.FaceCheckUrl());
        return JSON.parseObject(result,FaceCheckResult.class);
    }
}
